<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('Provider/index')}">外调列表</a></li>
            <li><a href="{:U('Provider/add')}">创建外调</a></li>
        </ul>
        测试服务器调用地址为：http://wxtest.baobaot.com/index.php?g=api&m=External&a=qrcodeurl<br/>
        正式服务器调用地址为：http://yyy.baobaot.com/index.php?g=api&m=External&a=qrcodeurl<br/>
        必须用Post格式提交<br/>
   array('Id'=>'服务商名称','Secret'=>'服务商的密钥','terminalId'=>'参数1','gameId'=>'参数2');<br/>
            <div class="pagination">{$page}</div>
            <table class="table table-hover table-bordered" style="word-break:break-all;">
                <thead>
                    <tr>
                        <th width="60">id</th>
                        <th>服务商</th>
						<th>密钥</th>
                        <th>回调地址</th>
                        <th>转发地址</th>
                        <th>请求次数</th>
                        <th>创建时间</th>
                        <th width="60">操作</th>
                    </tr>
                </thead>
                <foreach name="qrcodeusers" item="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.name}</td>
                        <td>{$vo.secret}</td>
						<td>{$vo.callback}</td>
						<td>{$vo.forwarding}</td>
						<td>{$vo.request}</td>
						<td>{$vo.create}</td>
                        <td>
							<if condition="!$vo['status']">
								<a href="{:U('Provider/up',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要开启此密钥吗？">未启用 </a>
							</if>
							<if condition="$vo['status'] eq 1">
								<a href="{:U('Provider/down',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要关闭此密钥吗？" style="color: #FF0000;"><b>已启用 </b></a>
							</if>
							<if condition="$vo['status'] eq 2">
								<a href="{:U('Provider/up',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要开启此密钥吗？">已停用 </a>
							</if>
                        </td>
                    </tr>
                </foreach>
                <thead>
                    <tr>
                        <th width="60">id</th>
                        <th>服务商</th>
						<th>密钥</th>
                        <th>回调地址</th>
                        <th>转发地址</th>
                        <th>请求次数</th>
                        <th>创建时间</th>
                        <th width="60">操作</th>
                    </tr>
                </thead>
            </table>
            <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
